package com.china08.yxyapi.entity.mg.statistics;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 用户上传资源统计, 按照年进行统计, 查询年统计表中的synch字段是否有非同步的, 进行统计
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.statistics.user.resource.total")
public class UserUploadResourceTotal extends MongoBaseEntityNoId {

    /**
     * userId + schoolId
     */
    @Id
    private String id;

    @Field(value = "user_id")
    private String userId;

    /**
     * 
     */
    @Field(value = "user_nick")
    private String userNick;

    /**
     * 统计日期
     */
    @Field(value = "statistics_date")
    private Date statisticsDate;

    /** The school id. 学校id */
    @Field(value = "school_id")
    private String schoolId;

    /** The school nick. 学校名称 */
    @Field(value = "school_nick")
    private String schoolNick;

    /**
     * 资源数量
     */
    @Field(value = "res_count")
    private Long resCount;

    @Field(value = "share_res_count")
    private Long shareResCount;

    /**
     * 微课数量
     */
    @Field(value = "weike_count")
    private Long weikeCount;

    @Field(value = "share_weike_count")
    private Long shareWeikeCount;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolNick() {
        return schoolNick;
    }

    public Long getResCount() {
        return resCount;
    }

    public void setResCount(Long resCount) {
        this.resCount = resCount;
    }

    public Long getShareResCount() {
        return shareResCount;
    }

    public void setShareResCount(Long shareResCount) {
        this.shareResCount = shareResCount;
    }

    public Long getWeikeCount() {
        return weikeCount;
    }

    public void setWeikeCount(Long weikeCount) {
        this.weikeCount = weikeCount;
    }

    public Long getShareWeikeCount() {
        return shareWeikeCount;
    }

    public void setShareWeikeCount(Long shareWeikeCount) {
        this.shareWeikeCount = shareWeikeCount;
    }

    public Date getStatisticsDate() {
        return statisticsDate;
    }

    public void setStatisticsDate(Date statisticsDate) {
        this.statisticsDate = statisticsDate;
    }

    public void setSchoolNick(String schoolNick) {
        this.schoolNick = schoolNick;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

}
